import config from "@/config"
import http from "@/utils/request"

export default {
	token: {
		url: `${config.API_URL}/token`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	memberQrcode: {
		url: `${config.API_URL}member/qrcode`,
		name: "获取登陆二维码",
		get: async function(params={}){
			return await http.get(this.url, params);
		}
	},
	memberCheckQrcode: {
		url: `${config.API_URL}member/checkQrcode`,
		name: "获取登陆二维码",
		get: async function(params={}){
			return await http.get(this.url, params);
		}
	},
	memberLogin: {
		url: `${config.API_URL}platform/auth/login`,
		name: "根据手机号登录",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
}
